3.676 \(\int \sqrt {e \cos (c+d x)} \sqrt {a+i a \tan (c+d x)} \, dx\)

Optimal. Leaf size=36 \[ -\frac {2 i \sqrt {a+i a \tan (c+d x)} \sqrt {e \cos (c+d x)}}{d} \]

[Out]

-2*I*(e*cos(d*x+c))^(1/2)*(a+I*a*tan(d*x+c))^(1/2)/d

________________________________________________________________________________________

Rubi [A]  time = 0.13, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {3515, 3488} \[ -\frac {2 i \sqrt {a+i a \tan (c+d x)} \sqrt {e \cos (c+d x)}}{d} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[e*Cos[c + d*x]]*Sqrt[a + I*a*Tan[c + d*x]],x]

[Out]

((-2*I)*Sqrt[e*Cos[c + d*x]]*Sqrt[a + I*a*Tan[c + d*x]])/d

Rule 3488

Int[((d_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[(b*(d
*Sec[e + f*x])^m*(a + b*Tan[e + f*x])^n)/(a*f*m), x] /; FreeQ[{a, b, d, e, f, m, n}, x] && EqQ[a^2 + b^2, 0] &
& EqQ[Simplify[m + n], 0]

Rule 3515

Int[(cos[(e_.) + (f_.)*(x_)]*(d_.))^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[(d*Co
s[e + f*x])^m*(d*Sec[e + f*x])^m, Int[(a + b*Tan[e + f*x])^n/(d*Sec[e + f*x])^m, x], x] /; FreeQ[{a, b, d, e,
f, m, n}, x] &&  !IntegerQ[m]

Rubi steps

\begin {align*} \int \sqrt {e \cos (c+d x)} \sqrt {a+i a \tan (c+d x)} \, dx &=\left (\sqrt {e \cos (c+d x)} \sqrt {e \sec (c+d x)}\right ) \int \frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {e \sec (c+d x)}} \, dx\\ &=-\frac {2 i \sqrt {e \cos (c+d x)} \sqrt {a+i a \tan (c+d x)}}{d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.17, size = 36, normalized size = 1.00 \[ -\frac {2 i \sqrt {a+i a \tan (c+d x)} \sqrt {e \cos (c+d x)}}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[e*Cos[c + d*x]]*Sqrt[a + I*a*Tan[c + d*x]],x]

[Out]

((-2*I)*Sqrt[e*Cos[c + d*x]]*Sqrt[a + I*a*Tan[c + d*x]])/d

________________________________________________________________________________________

fricas [A]  time = 0.41, size = 52, normalized size = 1.44 \[ -\frac {2 i \, \sqrt {2} \sqrt {\frac {1}{2}} \sqrt {e e^{\left (2 i \, d x + 2 i \, c\right )} + e} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} e^{\left (\frac {1}{2} i \, d x + \frac {1}{2} i \, c\right )}}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*cos(d*x+c))^(1/2)*(a+I*a*tan(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

-2*I*sqrt(2)*sqrt(1/2)*sqrt(e*e^(2*I*d*x + 2*I*c) + e)*sqrt(a/(e^(2*I*d*x + 2*I*c) + 1))*e^(1/2*I*d*x + 1/2*I*
c)/d

________________________________________________________________________________________

giac [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*cos(d*x+c))^(1/2)*(a+I*a*tan(d*x+c))^(1/2),x, algorithm="giac")

[Out]

Exception raised: TypeError >> An error occurred running a Giac command:INPUT:sage2:=int(sage0,x):;OUTPUT:Unab
le to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/
2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_n
ostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*
pi/t_nostep/2)Simplification assuming c near 0Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign
: (2*pi/x/2)>(-2*pi/x/2)Simplification assuming a near 0Simplification assuming a near 0Simplification assumin
g c near 0Simplification assuming d near 0Simplification assuming x near 0sym2poly/r2sym(const gen & e,const i
ndex_m & i,const vecteur & l) Error: Bad Argument ValueSimplification assuming c near 0Unable to check sign: (
2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Simplification assuming a near 0Simplificatio
n assuming a near 0Simplification assuming c near 0Simplification assuming d near 0Simplification assuming x n
ear 0sym2poly/r2sym(const gen & e,const index_m & i,const vecteur & l) Error: Bad Argument ValueEvaluation tim
e: 0.46Done

________________________________________________________________________________________

maple [A]  time = 1.38, size = 45, normalized size = 1.25 \[ -\frac {2 i \sqrt {e \cos \left (d x +c \right )}\, \sqrt {\frac {a \left (i \sin \left (d x +c \right )+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*cos(d*x+c))^(1/2)*(a+I*a*tan(d*x+c))^(1/2),x)

[Out]

-2*I/d*(e*cos(d*x+c))^(1/2)*(a*(I*sin(d*x+c)+cos(d*x+c))/cos(d*x+c))^(1/2)

________________________________________________________________________________________

maxima [B]  time = 0.79, size = 76, normalized size = 2.11 \[ -\frac {2 i \, \sqrt {a} \sqrt {e} \sqrt {-\frac {2 i \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1}}{d \sqrt {-\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - 1}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*cos(d*x+c))^(1/2)*(a+I*a*tan(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

-2*I*sqrt(a)*sqrt(e)*sqrt(-2*I*sin(d*x + c)/(cos(d*x + c) + 1) + sin(d*x + c)^2/(cos(d*x + c) + 1)^2 - 1)/(d*s
qrt(-sin(d*x + c)^2/(cos(d*x + c) + 1)^2 - 1))

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.03 \[ \int \sqrt {e\,\cos \left (c+d\,x\right )}\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*cos(c + d*x))^(1/2)*(a + a*tan(c + d*x)*1i)^(1/2),x)

[Out]

int((e*cos(c + d*x))^(1/2)*(a + a*tan(c + d*x)*1i)^(1/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {e \cos {\left (c + d x \right )}} \sqrt {i a \left (\tan {\left (c + d x \right )} - i\right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*cos(d*x+c))**(1/2)*(a+I*a*tan(d*x+c))**(1/2),x)

[Out]

Integral(sqrt(e*cos(c + d*x))*sqrt(I*a*(tan(c + d*x) - I)), x)

________________________________________________________________________________________